package com.situ.crm.mapper;

import com.situ.crm.entity.RolePermission;
import com.situ.crm.entity.RolePermissionKey;

import java.util.List;

public interface RolePermissionMapper {
    int deleteByPrimaryKey(RolePermissionKey key);

    int insert(RolePermission record);

    int insertSelective(RolePermission record);

    RolePermission selectByPrimaryKey(RolePermissionKey key);

    int updateByPrimaryKeySelective(RolePermission record);

    int updateByPrimaryKey(RolePermission record);
    
    void deleteByRoleId(Integer id);

	List<Integer> selectPermissionIdsByRoleId(Integer roleId);
}